Page({
  data:{
    list:[]
  },
  goDetail(ev) {
    wx.navigateTo({
      url: '/repair_pkg/pages/detail/index?id=' +ev.mark.id,
    })
  },
  addRepair() {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index',
    })
  },
  onShow(){
    this.getList()
  },
  async getList(){
    const res = await wx.http.get('/repair')
    console.log('维修信息',res.data);
    this.setData({
      list:res.data.rows
    })
  }
})
